package com.ftqh.project.travel.notes.service;

import com.ftqh.project.travel.notes.entity.Note;

import java.util.List;
import java.util.Optional;

/**
 * Created by Administrator on 2017/5/8.
 */
public interface NoteService {
    List<Note> findAll();
    Optional<Note> findById(Long id);
    List<Note> findByAuthorName(String authorName);
    void save(Note note);
}
